package com.itheima.servlet.myservlet;

import javax.servlet.*;
import java.io.IOException;

/*
* 第一步: 编写一个类实现servlet接口
* 第二部: 修改web.xmi配置文件配置我们的servlet
* */
public class StudentServlet implements Servlet{
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("我是servlet方法,我被执行了");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
